﻿<%@ Control Language="c#" AutoEventWireup="false" Inherits="Web.Control.WWW.Course.CSession" %>
<asp:Literal ID="litCount" Text="15" runat="server" Visible="false"/>
<div class="common">
	<div class="submenunew">
		<div class="submenu_l">
				<div class="unsub">
					<div class="unsubsel">
					<a href="/teaching/"><span>
				<%if(Page.Request.RawUrl.ToLower().IndexOf("/teaching/")>-1){%>
					<strong><%=GetText("M0036")%></strong></span></a></div>
					<div><img src="/Images/submenu_arrow.gif" /></div>
				<%} else{%>
					<%=GetText("M0036")%></span></a></div>
					<div><img src="/Images/submenu_arrownone.gif" /></div>
				<%}%>
				</div>
				<div class="unsub">
					<div class="unsubsel">
					<a href="/course/"><span>
				<%if(Page.Request.RawUrl.ToLower().IndexOf("/course/")>-1){%>
					<strong><%=GetText("M0037")%></strong></span></a></div>
					<div><img src="/Images/submenu_arrow.gif" /></div>
				<%} else{%>
					<%=GetText("M0037")%></span></a></div>
					<div><img src="/Images/submenu_arrownone.gif" /></div>
				<%}%>
				</div>
				<div class="unsub">
					<div class="unsubsel">
					<a href="/teach/join.htm"><span>
				<%if(Page.Request.RawUrl.ToLower().IndexOf("/teach/join.htm")>-1){%>
					<strong><%=GetText("TP100")%></strong></span></a></div>
					<div><img src="/Images/submenu_arrow.gif" /></div>
				<%} else{%>
					<%=GetText("TP100")%></span></a></div>
					<div><img src="/Images/submenu_arrownone.gif" /></div>
				<%}%>
				</div>
				<div class="cleartm"></div>
		</div>
		<div class="submenu_r"><input id="textKey" type="text" class="common_search" /><a href="#" id="btsearch" class="buttonimg" onclick="Search()" ><img src="/Images/icon_search19.gif" border="0" class="img" /></a></div>
		<div class="cleartm"></div>
	</div>
</div>
<div class="common">
	<div id="new_body">
		<div id="body_900">
			<div id="body_left"></div>
			<div id="body_main">
				<div class="submenuN">
					<div class="submenuN_position">
						<div class="submenuN_title">
							<div class="submenuN_Btitle">
								<h1><a href="<%=WWWHost %>/courses/<%=CID %>"><%=Lx.Web.Common.UI.Globals.HtmlStrippedText(CourseInfo.Title)%></a></h1>
							</div>							
						</div>
					</div>
				</div>
				<div class="Center9001n">
					<div class="Center9001Right">
						<div class="center9001content">
							<div class="teach_area">									
								<div class="courses_col">
									<h3><%=CourseInfo.Sessions %> sessions</h3>
									<div>
									<asp:Repeater ID="rptSessions" runat="server">
									<ItemTemplate>
									    <div class="courses_comment">
									        <div class="courses_comment_avatar Pic50"><a class="photo_50" href='<%#WWWHost %>/<%#Eval("SNO") %>.htm' ><img src='<%#Eval("SAvatar").ToString() == ""?"/Images/No_pic.gif":Eval("SAvatar").ToString() %>' alt="<%#Eval("SNickname") %>" /></a></div>
											<div class="courses_comment_Bacontent">
												<div class="courses_comment_acontent">
													<span class="grey12"><a href='<%#WWWHost %>/<%#Eval("SNO") %>.htm'><%#Eval("SNickname") %></a> feedback on  <%#((DateTime)Eval("HappenDate")).ToString("MMM d, yyyy", new System.Globalization.CultureInfo(Lx.Web.Common.UI.Globals.Language)) %></span>
													<div class="margin5D"><%#Lx.Web.Common.UI.Globals.HtmlStrippedText(Eval("SToTDesc").ToString())%></div><%#Eval("TToSDesc").ToString()!=""?"<div><br /><span class='grey12'><a href='/"+CourseInfo.MemberNo+"T.htm'>"+CourseInfo.Nickname+"</a> feedback on  "+((DateTime)Eval("DescDate")).ToString("MMM d, yyyy", new System.Globalization.CultureInfo(Lx.Web.Common.UI.Globals.Language))+"</span><div class='margin5D'>"+Lx.Web.Common.UI.Globals.HtmlStrippedText(Eval("TToSDesc").ToString())+"</div></div>":""%>
												</div>
												<div class="courses_comment_delete"><a href="<%#WWWHost %>/lesson/<%#Eval("LID") %>"><%#GetText("Lesson {0} {1}", new string[] { Eval("LChapter").ToString(), Lx.Web.Common.UI.Globals.HtmlStrippedText(Eval("LTitle").ToString()) })%></a><p class="grey11">Professional: <%#Eval("Professional") %><br />Knowledgeable: <%#Eval("Knowledgeable") %><br />Helpful: <%#Eval("Helpful") %></p></div>
												<div class="Clear"></div>
											</div>
											<div class="Clear"></div>
										</div>
										</ItemTemplate>
										</asp:Repeater>														
										<div id="divPage" class="page_num">
										<%= CreatePageNav(RecordCount, PageSize, PageIndex, "",
										string.Format("<span class='page_none grey10'><a href='{0}/course/{1}/sessions.htm?p=$I$'>{2}</a></span>&nbsp;", WWWHost,CID,HttpUtility.UrlEncode(GetText("..."))),
										"",string.Format("<span class='page_none grey10'><a href='{0}/course/{1}/sessions.htm?p=$I$'>{2}</a></span>&nbsp;", WWWHost,CID,HttpUtility.UrlEncode(GetText("..."))),
										string.Format("<span class='page_select'>{0}</span>&nbsp;", PageIndex),
										string.Format("<span class='page_none grey10'><a href='{0}/course/{1}/sessions.htm?p=$I$'>$I$</a></span>&nbsp;",WWWHost,CID))%>							
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
					<div class="Center9001Left">
						<div class="right_layerA">
							<div class="layer_contentA">
								<h4>Teacher Profile</h4>
								<div class="layer_contentA5" style="margin-bottom:10px">
								    <div class="floatl width65"><a href="<%=WWWHost %>/<%=CourseInfo.MemberNo %>T.htm"><img src='<%=CourseInfo.Avatar == ""?"/Images/No_pic.gif":CourseInfo.Avatar %>' alt="<%=CourseInfo.Nickname %>" width="50" height="50" /></a><br /><%=CourseInfo.TeacherType=="1"?GetText("Teacher"):GetText("Tutor")%>                                                
                                    </div>									
									<div class="floatr wid120">
									    <span class="text14"><a href="<%=WWWHost %>/<%=CourseInfo.MemberNo %>T.htm"><%=CourseInfo.Nickname %></a></span>
								        <p><%=CourseInfo.Sessions > 0 ? "<img src='/images/fbapp_level_" + CourseInfo.StarRate.ToString("N0")+ ".gif' title='Rating:" + CourseInfo.StarRate.ToString("NO") + "'/><br />" + GetText("Sessions:") + CourseInfo.Sessions.ToString() : ""%><br /><span class="grey11"><%=GetText("From {0}",new string[]{BLF.StaticData.GetCountryText(CourseInfo.Nationality)}) %></span></p>
								    </div>
									<div class="clear"></div>
								</div>								
							</div>
						</div>						
					</div>
					<div class="clear"></div>
				</div>
			</div>
			<div id="body_right"></div>
			<div class="clear"></div>
		</div>
		<div id="body_900F"></div>
	</div>
</div>